package com.lwq.designpattern.creationalPatterns.factoryPattern.simple;

/**
 * @author liwq
 * @description
 * @date 2021/11/26 16:19
 */
public class PhoneDemo {
    public static void main(String[] arg) {
        PhoneFactory factory = new PhoneFactory();
        // 造小米
        Phone miPhone = factory.makePhone("MiPhone");
        // 造苹果
        IPhone iPhone = (IPhone)factory.makePhone("iPhone");
    }
}
